package com.studio701.carguard.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjc
 * @since 2022-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("car_state")
@ApiModel(value="CarState对象", description="")
public class CarState implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车辆id")
    @TableId(value = "c_id", type = IdType.AUTO)
    private Integer cId;

    @ApiModelProperty(value = "车辆汽油")
    @TableField("c_gas")
    private Integer cGas;

    @ApiModelProperty(value = "车辆电瓶电压")
    @TableField("c_voltage")
    private BigDecimal cVoltage;

    @ApiModelProperty(value = "车辆异常胎压")
    @TableField("c_tirepressure")
    private BigDecimal cTirepressure;

    @ApiModelProperty(value = "车辆里程")
    @TableField("c_mileage")
    private BigDecimal cMileage;

    @ApiModelProperty(value = "车辆信息记录时间")
    @TableField("c_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "ctime")
    private LocalDateTime cTime;

    @ApiModelProperty(value = "车辆上一次年检时间")
    @TableField("c_vehicleinspectiontime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "cvehicleinspectiontime")
    private LocalDateTime cVehicleinspectiontime;

    @ApiModelProperty(value = "车辆上一次保养后里程数")
    @TableField("c_lastmaintainmileage")
    private BigDecimal cLastmaintainmileage;

    @ApiModelProperty(value = "车辆上一次保养时间")
    @TableField("c_lastmaintaintime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "clastmaintaintime")
    private LocalDateTime cLastmaintaintime;

    @ApiModelProperty(value = "经度")
    @TableField("c_longitude")
    private BigDecimal cLongitude;

    @ApiModelProperty(value = "纬度")
    @TableField("c_latitude")
    private BigDecimal cLatitude;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;


}
